package com.gitee.melin.bee.core.jdbc.dialect.impl;

import com.gitee.melin.bee.core.jdbc.enums.DataSourceType;
import com.gitee.melin.bee.core.jdbc.relational.ConnectionInfo;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.SQLException;

public class GreenplumJdbcDialect extends PostgreSqlJdbcDialect {

    @Override
    public DataSourceType getDataSourceType() {
        return DataSourceType.GREENPLUM;
    }

    public GreenplumJdbcDialect(ConnectionInfo connectionInfo) {
        super(connectionInfo);
    }

    public GreenplumJdbcDialect(Connection connection) {
        super(connection);
    }

    @Override
    protected Driver getDriver() throws SQLException {
        return loadDriver(DataSourceType.GREENPLUM.getDriverClass());
    }
}
